package com.zhsq.zlc.dao.dictionary;

import com.zhsq.zlc.entity.DictionaryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
@Component
@Mapper
public interface DictionaryMapper {

	List<DictionaryEntity> list(DictionaryEntity entity) throws Exception;

	DictionaryEntity listByOther(DictionaryEntity entity) throws Exception;

	DictionaryEntity getDictionaryById(DictionaryEntity entity) throws Exception;

	int count(DictionaryEntity entity) throws Exception;

	void add(DictionaryEntity entity) throws Exception;
	
	void edit(DictionaryEntity entity) throws Exception;
	
	void delete(int id) throws Exception;
}
